package com.ruoyi.user.service.impl;

import com.ruoyi.user.domain.YmTypeEntity;
import com.ruoyi.user.mapper.YmTypeMapper;
import com.ruoyi.user.service.IYmTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Service业务层处理
 * 
 * @author zq
 * @date 2022-11-08
 */
@Service
public class YmTypeServiceImpl implements IYmTypeService 
{
    @Autowired
    private YmTypeMapper ymTypeMapper;

    /**
     * 查询
     * 
     * @param id 主键
     * @return 
     */
    @Override
    public YmTypeEntity selectYmTypeById(Long id)
    {
        return ymTypeMapper.selectYmTypeById(id);
    }

    /**
     * 查询列表
     * 
     * @param ymTypeEntity 
     * @return 
     */
    @Override
    public List<YmTypeEntity> selectYmTypeList(YmTypeEntity ymTypeEntity)
    {
        return ymTypeMapper.selectYmTypeList(ymTypeEntity);
    }

    /**
     * 新增
     * 
     * @param ymTypeEntity 
     * @return 结果
     */
    @Override
    public int insertYmType(YmTypeEntity ymTypeEntity)
    {
        return ymTypeMapper.insertYmType(ymTypeEntity);
    }

    /**
     * 修改
     * 
     * @param ymTypeEntity 
     * @return 结果
     */
    @Override
    public int updateYmType(YmTypeEntity ymTypeEntity)
    {
        return ymTypeMapper.updateYmType(ymTypeEntity);
    }

    /**
     * 批量删除
     * 
     * @param ids 需要删除的主键
     * @return 结果
     */
    @Override
    public int deleteYmTypeByIds(Long[] ids)
    {
        return ymTypeMapper.deleteYmTypeByIds(ids);
    }

    /**
     * 删除信息
     * 
     * @param id 主键
     * @return 结果
     */
    @Override
    public int deleteYmTypeById(Long id)
    {
        return ymTypeMapper.deleteYmTypeById(id);
    }
}
